<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>管理员后台</title>
    <link th:href="@{/layui/css/layui.css}" rel="stylesheet"/>
    <link th:href="@{/css/index.css}" rel="stylesheet"/>
    <link th:href="@{/css/tool.css}" rel="stylesheet"/>

    <script th:src="@{/layui/layui.js}"></script>
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <!--head-->
    <div class="layui-header">
        <ul class="layui-nav layui-bg-cyan" lay-filter="">
            <li class="layui-nav-item">电子招投标平台</li>
            <li class="layui-nav-item"><a href="/">首页</a></li>
            <!--        <li class="layui-nav-item" th:if="${session.user!=null && session.user.status == 0}"><a href="/zb_publishJump">发布招标</a></li>-->

            <li class="layui-nav-item fr" >
                <a href="javascript:;" th:text="${user.name}">下拉框</a>
                <dl class="layui-nav-child"> <!-- 二级菜单 -->
                    <dd><a href="/logout">退出登录</a></dd>
                </dl>
            </li>
        </ul>
<!--        <div th:insert="~{navigation::nav}"></div>-->
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree" lay-filter="test" id="nav">

                <li class="layui-nav-item layui-nav-itemed">
                    <a href="javascript:;">招标管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/admin/zbShowSh" id="zbShowSh">招标项目发布审核</a></dd>
                        <dd><a href="/admin/tbShowSh">投标人审核</a></dd>
                        <dd><a href="/expertSelectTable">招标项目专家挑选</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="/admin/zbModifySh">招标信息修改审核</a></li>

                <li class="layui-nav-item"><a href="/admin/publishSh">公告发布审核</a></li>


            </ul>
        </div>
    </div>

    <div class="layui-body" style="overflow-y: hidden">
    <!-- 内容主体区域 -->
        <iframe id="iframeMain" style="width: 100%; height: 100%" src=""></iframe>
<!--
         <div style="padding: 15px;">内容主体区域</div>-->
</div>
    <div class="layui-footer">
        <!-- 底部固定区域 -->
    </div>
</div>
<script>
    //JavaScript代码区域
    layui.use(['element', 'jquery', 'layer'], function () {
        var element = layui.element,
            $ = layui.jquery,
            layer = layui.layer;
        ;

        layer.ready(function () {
            $('#zbShowSh').trigger('click');
        })

        $(document).ready(function () {
            $("#nav>li a").click(function (e) {
                e.preventDefault();
                $('#iframeMain').attr("src", $(this).attr("href"));
            });
        });
        // var id = 0;
        // $("#nav>li a").click(function () {
        //     element.tabAdd('xbs_tab', {
        //         title:  $(this).text()
        //         ,content: '<iframe id="iframeMain" style="width: 100%; height: 100%" src=""></iframe>' //支持传入html
        //         ,id: index($(this))
        //     });
        //
        //     element.tabChange('xbs_tab',id)
        // })



    });
</script>
</body>
</html>